Optimal. Leaf size=79 \[ \frac{(2 A+3 C) \sin (c+d x)}{3 d \sqrt{\cos (c+d x)} \sqrt{b \cos (c+d x)}}+\frac{A \sin (c+d x)}{3 d \cos ^{\frac{5}{2}}(c+d x) \sqrt{b \cos (c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0608861, antiderivative size = 79, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 35, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.114, Rules used = {18, 3012, 3767, 8} \[ \frac{(2 A+3 C) \sin (c+d x)}{3 d \sqrt{\cos (c+d x)} \sqrt{b \cos (c+d x)}}+\frac{A \sin (c+d x)}{3 d \cos ^{\frac{5}{2}}(c+d x) \sqrt{b \cos (c+d x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 18
Rule 3012
Rule 3767
Rule 8
Rubi steps
\begin{align*} \int \frac{A+C \cos ^2(c+d x)}{\cos ^{\frac{7}{2}}(c+d x) \sqrt{b \cos (c+d x)}} \, dx &=\frac{\sqrt{\cos (c+d x)} \int \left (A+C \cos ^2(c+d x)\right ) \sec ^4(c+d x) \, dx}{\sqrt{b \cos (c+d x)}}\\ &=\frac{A \sin (c+d x)}{3 d \cos ^{\frac{5}{2}}(c+d x) \sqrt{b \cos (c+d x)}}+\frac{\left ((2 A+3 C) \sqrt{\cos (c+d x)}\right ) \int \sec ^2(c+d x) \, dx}{3 \sqrt{b \cos (c+d x)}}\\ &=\frac{A \sin (c+d x)}{3 d \cos ^{\frac{5}{2}}(c+d x) \sqrt{b \cos (c+d x)}}-\frac{\left ((2 A+3 C) \sqrt{\cos (c+d x)}\right ) \operatorname{Subst}(\int 1 \, dx,x,-\tan (c+d x))}{3 d \sqrt{b \cos (c+d x)}}\\ &=\frac{A \sin (c+d x)}{3 d \cos ^{\frac{5}{2}}(c+d x) \sqrt{b \cos (c+d x)}}+\frac{(2 A+3 C) \sin (c+d x)}{3 d \sqrt{\cos (c+d x)} \sqrt{b \cos (c+d x)}}\\ \end{align*}
Mathematica [A] time = 0.110338, size = 51, normalized size = 0.65 \[ \frac{\sin (c+d x) \left (A \tan ^2(c+d x)+3 (A+C)\right )}{3 d \sqrt{\cos (c+d x)} \sqrt{b \cos (c+d x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.396, size = 54, normalized size = 0.7 \begin{align*}{\frac{\sin \left ( dx+c \right ) \left ( 2\,A \left ( \cos \left ( dx+c \right ) \right ) ^{2}+3\,C \left ( \cos \left ( dx+c \right ) \right ) ^{2}+A \right ) }{3\,d}{\frac{1}{\sqrt{b\cos \left ( dx+c \right ) }}} \left ( \cos \left ( dx+c \right ) \right ) ^{-{\frac{5}{2}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 2.63428, size = 479, normalized size = 6.06 \begin{align*} \frac{2 \,{\left (\frac{3 \, C \sqrt{b} \sin \left (2 \, d x + 2 \, c\right )}{b \cos \left (2 \, d x + 2 \, c\right )^{2} + b \sin \left (2 \, d x + 2 \, c\right )^{2} + 2 \, b \cos \left (2 \, d x + 2 \, c\right ) + b} + \frac{2 \,{\left ({\left (3 \, \cos \left (2 \, d x + 2 \, c\right ) + 1\right )} \sin \left (6 \, d x + 6 \, c\right ) + 3 \,{\left (3 \, \cos \left (2 \, d x + 2 \, c\right ) + 1\right )} \sin \left (4 \, d x + 4 \, c\right ) - 3 \, \cos \left (6 \, d x + 6 \, c\right ) \sin \left (2 \, d x + 2 \, c\right ) - 9 \, \cos \left (4 \, d x + 4 \, c\right ) \sin \left (2 \, d x + 2 \, c\right )\right )} A}{{\left (2 \,{\left (3 \, \cos \left (4 \, d x + 4 \, c\right ) + 3 \, \cos \left (2 \, d x + 2 \, c\right ) + 1\right )} \cos \left (6 \, d x + 6 \, c\right ) + \cos \left (6 \, d x + 6 \, c\right )^{2} + 6 \,{\left (3 \, \cos \left (2 \, d x + 2 \, c\right ) + 1\right )} \cos \left (4 \, d x + 4 \, c\right ) + 9 \, \cos \left (4 \, d x + 4 \, c\right )^{2} + 9 \, \cos \left (2 \, d x + 2 \, c\right )^{2} + 6 \,{\left (\sin \left (4 \, d x + 4 \, c\right ) + \sin \left (2 \, d x + 2 \, c\right )\right )} \sin \left (6 \, d x + 6 \, c\right ) + \sin \left (6 \, d x + 6 \, c\right )^{2} + 9 \, \sin \left (4 \, d x + 4 \, c\right )^{2} + 18 \, \sin \left (4 \, d x + 4 \, c\right ) \sin \left (2 \, d x + 2 \, c\right ) + 9 \, \sin \left (2 \, d x + 2 \, c\right )^{2} + 6 \, \cos \left (2 \, d x + 2 \, c\right ) + 1\right )} \sqrt{b}}\right )}}{3 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.48752, size = 131, normalized size = 1.66 \begin{align*} \frac{{\left ({\left (2 \, A + 3 \, C\right )} \cos \left (d x + c\right )^{2} + A\right )} \sqrt{b \cos \left (d x + c\right )} \sin \left (d x + c\right )}{3 \, b d \cos \left (d x + c\right )^{\frac{7}{2}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{C \cos \left (d x + c\right )^{2} + A}{\sqrt{b \cos \left (d x + c\right )} \cos \left (d x + c\right )^{\frac{7}{2}}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]